Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement Allowlist Module And Native Token Limit Module #1232

Merged
merged 13 commits into from
Dec 21, 2024

Conversation

Zer0dot
Copy link
Collaborator

@Zer0dot Zer0dot commented Dec 17, 2024

Pull Request Checklist

Implements features related to the AllowlistModule. TODOS:

  • Implement encoding helpers for onInstall() and onUninstall()
  • Test installation and uninstallation
  • Test functionality

PR-Codex overview

This PR focuses on introducing new error handling and validation modules in a smart contract system, enhancing the encoding and decoding of data for various modules, and improving test coverage for these functionalities.

Detailed summary

  • Renamed name in EntityIdOverrideError to "EntityIdOverrideError".
  • Added nativeTokenLimitModule with encoding methods for install/uninstall data.
  • Introduced allowlistModule with encoding methods for install/uninstall data.
  • Updated tests to include scenarios for allowlistModule and nativeTokenLimitModule.
  • Improved error handling for entity ID validation in installValidationActions.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 21, 2024 1:03am
aa-sdk-ui-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 21, 2024 1:03am

Copy link

graphite-app bot commented Dec 17, 2024

How to use the Graphite Merge Queue

Add the label graphite-merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@Zer0dot Zer0dot force-pushed the zer0dot/module-allowlist branch from 57f79ec to 5496c55 Compare December 17, 2024 22:31
@howydev howydev force-pushed the howy/add-install-validation branch 6 times, most recently from d9c40ed to 873b19e Compare December 18, 2024 19:58
@Zer0dot Zer0dot force-pushed the zer0dot/module-allowlist branch from 5496c55 to 52071ce Compare December 18, 2024 20:07
@Zer0dot Zer0dot force-pushed the zer0dot/module-allowlist branch from 52071ce to afccbd9 Compare December 18, 2024 21:17
@Zer0dot Zer0dot changed the base branch from howy/add-install-validation to howy/add-mav2-uo-call-encoding December 18, 2024 21:17
@Zer0dot Zer0dot changed the title feat: Implement Allowlist Module feat: Implement Allowlist Module And Native Token Limit Module Dec 18, 2024
@Zer0dot Zer0dot marked this pull request as draft December 18, 2024 23:10
@howydev howydev force-pushed the howy/add-mav2-uo-call-encoding branch from df3501a to 45d889c Compare December 20, 2024 21:35
Base automatically changed from howy/add-mav2-uo-call-encoding to howy/add-install-validation December 20, 2024 21:58
@howydev howydev force-pushed the howy/add-install-validation branch from d161f12 to 4e59a6f Compare December 20, 2024 22:02
Base automatically changed from howy/add-install-validation to howy/scaffold-v0.8 December 20, 2024 22:02
@Zer0dot Zer0dot merged commit 5006300 into howy/scaffold-v0.8 Dec 21, 2024
2 of 6 checks passed
@Zer0dot Zer0dot deleted the zer0dot/module-allowlist branch December 21, 2024 00:50
howydev pushed a commit that referenced this pull request Jan 2, 2025
* feat: allowlist module installation and uninstallation

* feat: Add Native Token Limit Module Support (#1233)

* feat: (WIP) native token limit module support

* feat: adapt native token limit module to new arch and add tests

* chore: autogenerated file

* chore: cleanup

* chore: remove only test specifier

* test: test allowlist module usage

* test: flesh out native token limit module test

* chore: rebase fixes

* fix: await useroperation results correctly

* chore: remove redundant post hook

* feat: allow hooks on the fallback validation

* fix: fix error name mismatch

* fix: remove unnecessary await wrapping

* chore: removed unused module components, cleanup

* chore: rearrange tests to handle polluted end states
howydev pushed a commit that referenced this pull request Jan 2, 2025
* feat: allowlist module installation and uninstallation

* feat: Add Native Token Limit Module Support (#1233)

* feat: (WIP) native token limit module support

* feat: adapt native token limit module to new arch and add tests

* chore: autogenerated file

* chore: cleanup

* chore: remove only test specifier

* test: test allowlist module usage

* test: flesh out native token limit module test

* chore: rebase fixes

* fix: await useroperation results correctly

* chore: remove redundant post hook

* feat: allow hooks on the fallback validation

* fix: fix error name mismatch

* fix: remove unnecessary await wrapping

* chore: removed unused module components, cleanup

* chore: rearrange tests to handle polluted end states
howydev pushed a commit that referenced this pull request Jan 2, 2025
* feat: allowlist module installation and uninstallation

* feat: Add Native Token Limit Module Support (#1233)

* feat: (WIP) native token limit module support

* feat: adapt native token limit module to new arch and add tests

* chore: autogenerated file

* chore: cleanup

* chore: remove only test specifier

* test: test allowlist module usage

* test: flesh out native token limit module test

* chore: rebase fixes

* fix: await useroperation results correctly

* chore: remove redundant post hook

* feat: allow hooks on the fallback validation

* fix: fix error name mismatch

* fix: remove unnecessary await wrapping

* chore: removed unused module components, cleanup

* chore: rearrange tests to handle polluted end states
howydev added a commit that referenced this pull request Jan 2, 2025
* feat: add ma v2 scaffolding with basic uo test

* fix: review fixes

* fix: some review fixes

* fix: more review fixes

* chore: rename abi files for clarity

* chore: more fixes

* chore: more fixes

* chore: update abi types

* chore: removing arbsepo instance

* fix: more review fixes

* fix: review fixes, improve getNonce implementation to be more friendly

* chore: update sma type to include entity properties

* fix: review fixes

* fix: type in docs

* fix: x

* fix: reviews

* feat: add install/uninstall validation (#1221)

* feat: add install validation, add tests for session key

* fix: lint

* fix: review fixes

* fix: tests

* feat: add view functions and user op calldata encodings (#1223)

* feat: add paymaster guard module

fix: lint

fix: review fixes

feat: add view functions and user op calldata encodings

feat: add paymaster guard module impl

feat: adds tests for paymaster guard module

chore: clean up comments

refactor: removes unnecessary .resolves.not.toThrowError()

fix: removes value field from encodeAbiParameters args

Co-authored-by: howydev <[email protected]>

* feat: adds time range module

fix: lint

fix: review fixes

feat: add view functions and user op calldata encodings

feat: adds time module impl

feat: adds time range module tests

refactor: removes use of addresses, meta, and value field in args passed to encodeAbiParameters

Co-authored-by: howydev <[email protected]>

* feat: Implement Allowlist Module And Native Token Limit Module (#1232)

* feat: allowlist module installation and uninstallation

* feat: Add Native Token Limit Module Support (#1233)

* feat: (WIP) native token limit module support

* feat: adapt native token limit module to new arch and add tests

* chore: autogenerated file

* chore: cleanup

* chore: remove only test specifier

* test: test allowlist module usage

* test: flesh out native token limit module test

* chore: rebase fixes

* fix: await useroperation results correctly

* chore: remove redundant post hook

* feat: allow hooks on the fallback validation

* fix: fix error name mismatch

* fix: remove unnecessary await wrapping

* chore: removed unused module components, cleanup

* chore: rearrange tests to handle polluted end states

* feat: add native signer, implement signMessage and signTypedData (#1246)

* feat: add native signer, implement signMessage and signTypedData

* chore: fix

---------

Co-authored-by: Linna <[email protected]>
Co-authored-by: Zer0dot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants